SftTree/OCX 7.0

SftTree.ColumnTextStyle Property

Softel vdm, Inc.

Defines a column header's text style.

Deprecated - Provided for compatibility with earlier versions only - Use Header.TextHAlign and Header.TextVAlign instead

Syntax       

Get

VB.NET

Align = object.get_ColumnTextStyle(ByVal ColIndex As Short)  As SftTreeAlignConstants

VB

Align = object.ColumnTextStyle(ByVal ColIndex As Integer)  As SftTreeAlignConstants

C#.NET

SftTreeAlignConstants Align = object.get_ColumnTextStyle(short ColIndex);

VC++

enum SftTreeAlignConstants Align = object->ColumnTextStyle[short ColIndex];
enum SftTreeAlignConstants Align = object->GetColumnTextStyle(short ColIndex);

C

HRESULT object->get_ColumnTextStyle(short ColIndex, enum SftTreeAlignConstants* Align);

Delphi

Align := object.ColumnTextStyle[ColIndex : Smallint]  : TOleEnum;

Put

VB.NET

object.set_ColumnTextStyle(ByVal ColIndex As Short, ByVal Align As SftTreeAlignConstants)

VB

object.ColumnTextStyle(ByVal ColIndex As Integer) = Align  As SftTreeAlignConstants

C#.NET

void object.set_ColumnTextStyle(short ColIndex, SftTreeAlignConstants Align);

VC++

enum SftTreeAlignConstants object->ColumnTextStyle[short ColIndex] = Align;
void object->PutColumnTextStyle(short ColIndex, enum SftTreeAlignConstants Align);

C

HRESULT object->put_ColumnTextStyle(short ColIndex, enum SftTreeAlignConstants Align);

Delphi

object.ColumnTextStyle[ColIndex : Smallint] := Align  : TOleEnum;

object

A SftTree object.

ColIndex

The zero-based column number.

Align

Defines a column header's text style.

One value of each of the following tables can be combined and used as Align value:

Horizontal Alignment

Value

Description

alignSftTreeLeft 

0

The text and graphic component are left aligned.

alignSftTreeCenter

1

The text and graphic component are centered.

alignSftTreeRight 

2

The text and graphic component are right aligned.

Vertical Alignment

Value

Description

alignSftTreeVCenter

16

The text is vertically centered.  If no vertical alignment value is specified, this is the default.

alignSftTreeTop

32

The text is aligned with the top of the available area.

alignSftTreeBottom

64

The text is aligned with the bottom of the available area.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Header.TextHAlign and Header.TextVAlign instead

The ColumnTextStyle property defines a column header's text style.

To change the default alignment of cell text use the Column.CellHAlign and Column.CellVAlign properties instead.

The Headers.Multiline property can be used to enable multi-line column header text.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com